import request from '@/utils/request'

/** 添加轮播图 */
export function addCarousel(data) {
  return request({
    url: '/homeSetting/addAd',
    method: 'post',
    data
  })
}

/** 轮播图列表 */
export function getCarousel(data) {
  return request({
    url: '/homeSetting/adList',
    method: 'post',
    data
  })
}

/** 添加卖点 */
export function addSalePoint(data) {
  return request({
    url: '/homeSetting/addSalePoint',
    method: 'post',
    data
  })
}

/** 卖点列表 */
export function getSalePoint(data) {
  return request({
    url: '/homeSetting/salePointList',
    method: 'post',
    data
  })
}

/** 添加推荐 */
export function addRecommend(data) {
  return request({
    url: '/homeSetting/addRecommend',
    method: 'post',
    data
  })
}

/** 推荐详情 */
export function getRecommend(data) {
  return request({
    url: '/homeSetting/recommend',
    method: 'post',
    params: data
  })
}

/** 添加魔方 */
export function addTopic(data) {
  return request({
    url: '/homeSetting/addTopic',
    method: 'post',
    data
  })
}

/** 魔方详情 */
export function getTopic(data) {
  return request({
    url: '/homeSetting/topic',
    method: 'post',
    params: data
  })
}

/** 添加推荐图片*/
export function addRecommendPic(data) {
  return request({
    url: '/homeSetting/addRecommendPic',
    method: 'post',
    data
  })
}

/** 推荐图片详情*/
export function getRecommendPic(data) {
  return request({
    url: '/homeSetting/recommendPic',
    method: 'post',
    params: data
  })
}

/** 店铺商品列表*/
export function getAllCommodity(data) {
  return request({
    url: '/homeSetting/goodsList',
    method: 'post',
    params: data
  })
}

